{if count($aItems) > 0}
<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td>
            <table style="width: 100%;" class="border13" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{language text="recent_pics"}</td>
                </tr>
            </table>
            <br />
            <div style="text-align:center;">
            {if count($aItems)}
            <table style="width:100%;margin-left:auto;margin-right:auto;">
            <tr>
            {foreach from=$aItems item=aItem name=aitems}
            <td style="width:33%;text-align:center;">
             	<a href="{url link='public.gallery.view' id=$aItem.id}">
             	{img alt="" src="`$sGImageUrl`thumb/`$aItem.id`.jpg" src_def="design/pic/noimage_120.jpg" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"}
             	</a>
            </td>
            {/foreach}
            </tr>
            </table>
            {/if}
            </div>
            <div style="padding:5px;text-align:right;">
                <a class="link_action" href="{url link='public.gallery.main'}">[ {language text="view_more"} ]</a>
            </div>
        </td>
    </tr>
</table>
<br />
{/if}